package com.hoo.service.account;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.hoo.mapper.account.DictMapper;
import java.util.List;
import java.util.Map;

@Service
public class DictService {
    @Autowired
    DictMapper dictMapper;

    @Transactional(readOnly = true)
    public List<Map> getProvinces() {
        return dictMapper.getProvinces();
    }

    @Transactional(readOnly = true)
    public List<Map> getCitiesByProvinceId(int provinceId) {
        return dictMapper.getCitiesByProvinceId(provinceId);
    }

    @Transactional(readOnly = true)
    public List<Map> getAreasByCityId(int cityId) {
        return dictMapper.getAreasByCityId(cityId);
    }

}
